package es.valma.VideoClub.intefaces.controllers;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

public class LogoutWebController implements IWebController {

	  public String doProcess(HttpServletRequest request, HttpServletResponse response) {
		    //recuperamos la sesion
		    HttpSession session = request.getSession();
		    session.setAttribute("clienteActual", null);
		    session.invalidate();
		    return "/index";
		  }

	
}
